﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import Engine.Classes.*;
    import flash.events.*;
    import flash.display.*;

    public class AutoAnimatedBitmap extends AnimatedBitmap {

        protected var curTime:Number;

        public function AutoAnimatedBitmap(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:Number){
            super(_arg1, _arg2, _arg3, _arg4, _arg5);
            this.curTime = GlobalEngine.getTimer();
            this.addEventListener(Event.ENTER_FRAME, this.updateMe, false, 0, true);
        }
        override public function play():void{
            super.play();
        }
        public function updateMe(_arg1:Event):void{
            var _local2:Number = GlobalEngine.getTimer();
            var _local3:Number = (_local2 - this.curTime);
            this.curTime = _local2;
            super.onUpdate((_local3 / 1000));
        }
        override public function stop():void{
            super.stop();
        }
        override public function reset():void{
            super.reset();
        }
        public function cleanUp():void{
            this.removeEventListener(Event.ENTER_FRAME, this.updateMe);
        }

    }
}//package Classes 
